﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="OrderPlace.ascx.cs"
    Inherits="TCKQKL.FrontEnd.Web.Controls.OrderPlacement" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<%@ Register Src="Quotes.ascx" TagName="Quotes" TagPrefix="uc1" %>
<%@ Register Src="ErrorReport.ascx" TagName="ErrorReport" TagPrefix="uc2" %>
<link href="../styles/data.css" rel="stylesheet" type="text/css" />
<asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server">
</asp:ScriptManagerProxy>
<asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
    <ContentTemplate>
        <table class="data" style="border: none;">
            <tr>
                <td>
                    Yêu cầu
                </td>
                <td>
                    Lệnh
                </td>
                <td>
                    Mã CK
                </td>
                <td>
                    KL
                </td>
                <td>
                    Kiểu lệnh
                </td>
                <td>
                    Giá
                </td>
                <% if (orderType.Equals("CHANGE"))
                   {%>
                <td>
                    Giá mới
                </td>
                <%} %>
            </tr>
            <tr>
                <td>
                    <asp:DropDownList ID="ddlOrderType" runat="server" AutoPostBack="True">
                        <asp:ListItem Value="PLACE">ĐẶT</asp:ListItem>
                        <asp:ListItem Value="CHANGE">SỬA</asp:ListItem>
                        <asp:ListItem Value="CANCEL">HUỶ</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>
                    <asp:DropDownList ID="ddlOrderSide" runat="server" TabIndex="1">
                        <asp:ListItem Value="BUY">MUA</asp:ListItem>
                        <asp:ListItem Value="SELL">BÁN</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>
                    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
                        <ContentTemplate>
                            <asp:TextBox ID="txtSymbol" runat="server" Columns="3" AutoPostBack="True" OnTextChanged="txtSymbol_TextChanged"
                                CssClass="upperText" TabIndex="2"></asp:TextBox>
                            <asp:ImageButton ID="ibGetQuote" runat="server" ImageUrl="../Images/download_icon.gif"
                                OnClick="ibGetQuote_Click" CssClass="imgButton" TabIndex="9" />
                            &nbsp;&nbsp;&nbsp;
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </td>
                <td>
                    <asp:TextBox ID="txtQuantity" runat="server" Columns="4" TabIndex="3"></asp:TextBox>
                </td>
                <td>
                    <asp:DropDownList ID="ddlOrderClass" runat="server" TabIndex="6">
                        <asp:ListItem Value="LO">GIỚI HẠN</asp:ListItem>
                        <asp:ListItem Value="ATO">ATO</asp:ListItem>
                        <asp:ListItem Value="ATC">ATC</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>
                    <asp:TextBox ID="txtPrice" runat="server" Columns="4" CssClass="upperText" TabIndex="5"></asp:TextBox>
                </td>
                <% if (orderType.Equals("CHANGE"))
                   {%>
                <td>
                    <asp:TextBox ID="txtNewPrice" runat="server" Columns="4" CssClass="upperText" TabIndex="6"></asp:TextBox>
                    <asp:HiddenField ID="hfOrderId" runat="server" />
                </td>
                <% }%>
            </tr>
            <tr>
                <td style="border-bottom: none;" valign="top">
                    &nbsp;
                </td>
                <td style="border-bottom: none;" valign="top">
                    &nbsp;
                </td>
                <td colspan="5" style="border-bottom: none;" valign="top">
                    <uc1:Quotes ID="ucQuote" runat="server" UpdateMode="Conditional" />
                </td>
                <% if (orderType.Equals("CHANGE"))
                   {%>
                <%} %>
            </tr>
        </table>
    </ContentTemplate>
</asp:UpdatePanel>
